package com.tt.fashionWebSite.dao.jpa;

import com.tt.fashionWebSite.dao.HoaTietDao;
import com.tt.fashionWebSite.domain.DanhMucBaiViet;
import com.tt.fashionWebSite.domain.HoaTiet;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("hoaTiet")
public class HoaTietJpaDao extends GenericJpaDao<HoaTiet,String> implements HoaTietDao {
    public HoaTietJpaDao(){
        super(HoaTiet.class);
    }

    @Override
    public List<HoaTiet> getAllMotif(){
        return getEntityManager().createNamedQuery(HoaTiet.GET_ALL_MOTIF, HoaTiet.class).getResultList();
    }
}
